package com.cloud.school.bus.teacherhelper.protocol.login;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;

import android.content.Context;

import com.android.support.jhf.debug.DebugLog;
import com.android.support.jhf.utils.Base64Util;
import com.cloud.school.bus.teacherhelper.base.authcode.AuthCode;
import com.cloud.school.bus.teacherhelper.base.authcode.ooo;
import com.cloud.school.bus.teacherhelper.protocol.ProtocolDef;
import com.cloud.school.bus.teacherhelper.protocol.baserequest.BasePostHttpRequest;

public class GetTsigninRequest extends BasePostHttpRequest {

	public static final String TSIGNIN_KEY = "mactop";

	public GetTsigninRequest(Context context, String username, String password) {
		super(context);

		HashMap<String, String> requestMap = new HashMap<String, String>();
		requestMap.put("username", username);
		String afStr = AuthCode.authcodeEncode(password, TSIGNIN_KEY);
		requestMap.put("password", afStr);
		setRequestParam(ProtocolDef.METHOD_Tsignin, requestMap);
	}
}
